package com.max.eshop.comporators;

import java.util.Comparator;

import com.max.eshop.core.Book;

public class SortedBooksByCount implements Comparator<Book> {

	@Override
	public int compare(Book arg0, Book arg1) {
		return arg0.getCount().compareTo(arg1.getCount());

	}
}
